package week2;

/**
 * Created by mc on 2017/3/4.
 */
public class test1 {
    public static void main(String[] arge){
        int m = 1000;
        int n = 495;
        int a =495;
        for(a =495;a>0;a=a-1)
        {
            if(1000%a==0&&495%a==0){
                break;
            }
        }
        System.out.printf("%d",a);

    }
}
